@for $i from 1 through 5 {
    .item-#{$i} {
        background: url('./img/#{$i}.jpg') center no-repeat;
        background-size: contain;
    }
}